package com.woniuxy.qiantai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.qiantai.entity.Order;
import com.woniuxy.qiantai.entity.User;
import com.woniuxy.qiantai.vo.CartOrder;
import com.woniuxy.qiantai.vo.OrderVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author woniumrwang
 * @since 2023-01-06 02:44:36
 */
public interface OrderService extends IService<Order> {

    CartOrder getCartOrder(Long userId, Long[] bookIds);

    void createOrder(User currentUser, Long[] bookIds, Integer addressId);

    List<OrderVo> queryAllOrder(Long userId);

    void updateState(Long orderId, Integer newState);
}
